package com.zgz.underwrite.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name="employee")
public class Employee implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8464964082163787557L;

	@Id
	@GeneratedValue(generator="paymentableGenerator")
	@GenericGenerator(name="paymentableGenerator",strategy="assigned")
	private String SEmpCde;
	private String SEmpName;
	private String SMajor;//职位
	private String SRole;//角色
	private int rightsValue;//权限值
	private String SPassword;
	
	@ManyToOne
	@JoinColumn(name="SDeptNo",nullable=false)
	private Department dept;
	public String getSEmpCde() {
		return SEmpCde;
	}
	public void setSEmpCde(String empCde) {
		SEmpCde = empCde;
	}
	public String getSEmpName() {
		return SEmpName;
	}
	public void setSEmpName(String empName) {
		SEmpName = empName;
	}
	public String getSMajor() {
		return SMajor;
	}
	public void setSMajor(String major) {
		SMajor = major;
	}
	public Department getDept() {
		return dept;
	}
	public void setDept(Department dept) {
		this.dept = dept;
	}
	public void setRightsValue(int rightsValue) {
		this.rightsValue = rightsValue;
	}
	public int getRightsValue() {
		return rightsValue;
	}
	public void setSRole(String sRole) {
		SRole = sRole;
	}
	public String getSRole() {
		return SRole;
	}
	public void setSPassword(String sPassword) {
		SPassword = sPassword;
	}
	public String getSPassword() {
		return SPassword;
	}
	
	
	
}
